package com.j2ee.model;


public class Student{
	
	private String name ;
	private int age ;
	private int sex ;
	
	public Student() {
		System.out.println("new Student()");
	}
	public String getName() {
		System.out.println("getName()");
		return name;
	}
	public void setName(String name) {
		System.out.println("setName()");
		this.name = name;
	}
	public int getAge() {
		System.out.println("getAge()");
		return age;
	}
	public void setAge(int age) {
		System.out.println("setAge()");
		this.age = age;
	}
	public int getSex() {
		System.out.println("getSex()");
		return sex;
	}
	public void setSex(int sex) {
		System.out.println("setSex()");
		this.sex = sex;
	}
	@Override
	public String toString() {
		return "Student [name=" + name + ", age=" + age + ", sex=" + sex + "]";
	}
}
